|
CryptoPro XMLDsig API. Public API. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectru.CryptoPro.JCPxml.dsig.internal.dom.DOMStructure
ru.CryptoPro.JCPxml.dsig.internal.dom.DOMSignedInfo
public final class DOMSignedInfo
DOM-based implementation of SignedInfo.
| Field Summary | |
|---|---|
static int |
MAXIMUM_REFERENCE_COUNT
The maximum number of references per Manifest, if secure validation is enabled. |
| Constructor Summary | |
|---|---|
DOMSignedInfo(javax.xml.crypto.dsig.CanonicalizationMethod cm,
javax.xml.crypto.dsig.SignatureMethod sm,
java.util.List<? extends javax.xml.crypto.dsig.Reference> references)
Creates a DOMSignedInfo from the specified parameters. |
|
DOMSignedInfo(javax.xml.crypto.dsig.CanonicalizationMethod cm,
javax.xml.crypto.dsig.SignatureMethod sm,
java.util.List<? extends javax.xml.crypto.dsig.Reference> references,
java.lang.String id)
Creates a DOMSignedInfo from the specified parameters. |
|
DOMSignedInfo(org.w3c.dom.Element siElem,
javax.xml.crypto.XMLCryptoContext context,
java.security.Provider provider)
Creates a DOMSignedInfo from an element. |
|
| Method Summary | |
|---|---|
void |
canonicalize(javax.xml.crypto.XMLCryptoContext context,
java.io.ByteArrayOutputStream bos)
|
boolean |
equals(java.lang.Object o)
|
javax.xml.crypto.dsig.CanonicalizationMethod |
getCanonicalizationMethod()
|
java.io.InputStream |
getCanonicalizedData()
|
java.lang.String |
getId()
|
java.util.List |
getReferences()
|
javax.xml.crypto.dsig.SignatureMethod |
getSignatureMethod()
|
void |
marshal(org.w3c.dom.Node parent,
java.lang.String dsPrefix,
javax.xml.crypto.dom.DOMCryptoContext context)
|
| Methods inherited from class ru.CryptoPro.JCPxml.dsig.internal.dom.DOMStructure |
|---|
isFeatureSupported |
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.xml.crypto.XMLStructure |
|---|
isFeatureSupported |
| Field Detail |
|---|
public static final int MAXIMUM_REFERENCE_COUNT
| Constructor Detail |
|---|
public DOMSignedInfo(javax.xml.crypto.dsig.CanonicalizationMethod cm,
javax.xml.crypto.dsig.SignatureMethod sm,
java.util.List<? extends javax.xml.crypto.dsig.Reference> references)
DOMSignedInfo from the specified parameters. Use
this constructor when the Id is not specified.
cm - the canonicalization methodsm - the signature methodreferences - the list of references. The list is copied.
java.lang.NullPointerException - if
cm, sm, or references is
null
java.lang.IllegalArgumentException - if references is empty
java.lang.ClassCastException - if any of the references are not of
type Reference
public DOMSignedInfo(javax.xml.crypto.dsig.CanonicalizationMethod cm,
javax.xml.crypto.dsig.SignatureMethod sm,
java.util.List<? extends javax.xml.crypto.dsig.Reference> references,
java.lang.String id)
DOMSignedInfo from the specified parameters.
cm - the canonicalization methodsm - the signature methodreferences - the list of references. The list is copied.id - an optional identifer that will allow this
SignedInfo to be referenced by other signatures and
objects
java.lang.NullPointerException - if cm, sm,
or references is null
java.lang.IllegalArgumentException - if references is empty
java.lang.ClassCastException - if any of the references are not of
type Reference
public DOMSignedInfo(org.w3c.dom.Element siElem,
javax.xml.crypto.XMLCryptoContext context,
java.security.Provider provider)
throws javax.xml.crypto.MarshalException
DOMSignedInfo from an element.
siElem - a SignedInfo element
javax.xml.crypto.MarshalException| Method Detail |
|---|
public javax.xml.crypto.dsig.CanonicalizationMethod getCanonicalizationMethod()
getCanonicalizationMethod in interface javax.xml.crypto.dsig.SignedInfopublic javax.xml.crypto.dsig.SignatureMethod getSignatureMethod()
getSignatureMethod in interface javax.xml.crypto.dsig.SignedInfopublic java.lang.String getId()
getId in interface javax.xml.crypto.dsig.SignedInfopublic java.util.List getReferences()
getReferences in interface javax.xml.crypto.dsig.SignedInfopublic java.io.InputStream getCanonicalizedData()
getCanonicalizedData in interface javax.xml.crypto.dsig.SignedInfo
public void canonicalize(javax.xml.crypto.XMLCryptoContext context,
java.io.ByteArrayOutputStream bos)
throws javax.xml.crypto.dsig.XMLSignatureException
javax.xml.crypto.dsig.XMLSignatureException
public void marshal(org.w3c.dom.Node parent,
java.lang.String dsPrefix,
javax.xml.crypto.dom.DOMCryptoContext context)
throws javax.xml.crypto.MarshalException
marshal in class DOMStructurejavax.xml.crypto.MarshalExceptionpublic boolean equals(java.lang.Object o)
equals in class java.lang.Object
|
Copyright Crypto-Pro. All rights reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||